package br.com.fcomota.pi_iv_sie;

import br.com.fcomota.pi_iv_sie.dao.Dao_Novo_Cad_Usuario_Activity;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.Button;

/**
 * Created by Francisco Mota.
 */
public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}
	
	
	public void getActivity(View view){
		Button bt = (Button) view;
		Intent intent;
		
		if(bt.getText().toString().equalsIgnoreCase("Novo usuario")){
			intent = new Intent(this, Dao_Novo_Cad_Usuario_Activity.class);
		}
        else{
            intent = new Intent(this, LoginActivity.class);
        }
		startActivity(intent);
	}

}
